package com.kingdee.eas.xbwebservice;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;



public abstract class AbstractXBWebServiceFacadeControllerBean extends AbstractBizControllerBean implements XBWebServiceFacadeController
{
    protected AbstractXBWebServiceFacadeControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("E62A6B63");
    }

    public String testWebService(Context ctx, String arg1) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("d041b57d-4300-4f2e-a1ef-508e8f1bb565"), new Object[]{ctx, arg1});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_testWebService(ctx, arg1);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _testWebService(Context ctx, String arg1) throws BOSException
    {    	
        return null;
    }

    public String invoke(Context ctx, String methodName, String arg) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("dccdab28-ba40-4258-9309-663f4f65caaa"), new Object[]{ctx, methodName, arg});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            String retValue = (String)_invoke(ctx, methodName, arg);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (String)svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected String _invoke(Context ctx, String methodName, String arg) throws BOSException
    {    	
        return null;
    }

    public byte[] getBytes(Context ctx, String methodName, String args) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("95fa045d-eb8f-4615-b8dd-03645a0723e0"), new Object[]{ctx, methodName, args});
            invokeServiceBefore(svcCtx);
            if(!svcCtx.invokeBreak()) {
            byte[] retValue = (byte[])_getBytes(ctx, methodName, args);
            svcCtx.setMethodReturnValue(retValue);
            }
            invokeServiceAfter(svcCtx);
            return (byte[])svcCtx.getMethodReturnValue();
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected byte[] _getBytes(Context ctx, String methodName, String args) throws BOSException
    {    	
        return null;
    }

}